<h1>Listing users</h1>
	<% if notice %>
	<p id="notice" ><%= notice %></p>
	<% end %>
<table>
  <tr>
    <th>Firstname</th>
    <th>Lastname</th>
    <th>Studentid</th>
    
    <th>Address</th>
    <th>Phonenumber</th>
    <th>Emailaddress</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= user.firstName %></td>
    <td><%= user.lastName %></td>
    <td><%= user.studentId %></td>
     
    <td><%= user.address %></td>
    <td><%= user.phoneNumber %></td>
    <td><%= user.emailAddress %></td>
    <td><%= link_to 'Show', user %></td>
    <td><%= link_to 'Edit', edit_user_path(user) %></td>
    <td><%= link_to 'Destroy', user, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New User', new_user_path %>
